<html>
<head>
<script type="text/javascript" src="http://5.080c.com/data/resource/js/jquery.js"></script>
<script type="text/javascript">
var onoff=0,times=0;
var t;
function refresh_frame()
{	

    t=setInterval("actionA()",200);

}
function actionA()
{	
	if(times>parseInt(document.getElementById("times").value))
	{
		
		
		clearInterval(t);
		//alert("out");
		$("#showtimes").text(times+"_out");
	}

	times++;
		$("#showtimes").text(times);
	//document.getElementById("frameA").document.location.reload();
	//frameA.document.location.reload();
	//frameA.document.location.reload();
	//window.frames['frameA'].location.reload();
	//$("#frameA").reload();
	document.getElementById('frameA').contentWindow.location.reload(true);
	
	}
function stop_frame()
{
	clearInterval(t);
}
</script>

</head>
<body>
<div style="height:50px;">
<input id="clickme" value="go"  name="clickme" onClick="refresh_frame();" type="button"/>
<input id="stopme" value="stop"  name="clickme" onClick="stop_frame();" type="button"/>
<input type="text" id="times" value="0" />
<span id="showtimes"></span>
</div>
<iframe id="frameA" width="100%" height="500" src="http://5.080c.com/shop/index.php?act=store_goods_add"/>
</body>
</html>